package com.tsingteng.cosfun.ui.cosfun.imodel;


import com.tsingteng.cosfun.bean.BaseDataBean;
import com.tsingteng.cosfun.bean.ParagraphBean;
import com.tsingteng.cosfun.bean.PersonBean;
import com.tsingteng.cosfun.bean.VideoSignBean;
import com.tsingteng.cosfun.bean.WorkBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import retrofit2.Callback;

public class PersonEditModel extends BaseModel implements IPersonEditModel {


    @Override
    public void editUserInfo(String image, String nickName, String birthday, int sex, String areaid, String signature, Callback<BaseDataBean<PersonBean>> callback) {
        doRxRequest().editUserInfo(image, nickName, birthday, sex, areaid, signature).enqueue(callback);
    }

    @Override
    public void editUserInfo(String name, String value, Callback<BaseDataBean> callback) {
        doRxRequest().editUserInfo(name, value).enqueue(callback);
    }

    /**
     * 得到七牛的签名
     *
     * @param callback
     */
    @Override
    public void getSignaTure(String type, Callback<BaseDataBean<VideoSignBean>> callback) {
        doRxRequest().getSign(type).enqueue(callback);
    }


    @Override
    public void getPersonInfo(long profileId,
                              Callback<BaseDataBean<PersonBean>> callback) {
        doRxRequest().getPersonInfo(profileId).enqueue(callback);
    }
}
